package com.mcxx.modules.common.service.impl;

import com.mcxx.modules.common.service.CommonService;
import com.mcxx.modules.base.dao.read.TAUserReadDao;
import com.yinhai.ta404.core.context.TaUser;
import com.yinhai.ta404.core.service.BaseService;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
@TaTransactional
public class CommonServiceImpl extends BaseService implements CommonService {
    @Autowired
    TAUserReadDao taUserReadDao;

    @Override
    public TaUser getUserInfo(String userId, String orgId) {
        return taUserReadDao.getUserById(userId, orgId);
    }
}
